<%--
  Created by IntelliJ IDEA.
  User: Shinelon
  Date: 2017/6/17
  Time: 12:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="<%=path%>/css/bootstrap.css">
    <link rel="stylesheet" href="<%=path%>/css/common.css">
</head>
<body>

<!--head-->
<div id="header">
    <div class="container">
        <h1>报销管理系统</h1>
    </div>
</div>

<!--发票-->
<div id="second-header">
    <div class="container">
        <div class="row">
            <div class="col-sm-3">
                <form action="/demo/tripform/total" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="" >报销汇总单</button>
                </form>
            </div>
            <div class="col-sm-3">
                <form action="/demo/tripform/trip" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="" >出差报销单</button>
                </form>
            </div>
        </div>
    </div>
</div>

<!--出差报销单-->
<div class="container" id="content">

    <h2 class="text-center">
        浙江大学城市学院出差报销单
    </h2>
    <div id="btn-bar">
        <div class="row">
            <div class="col-md-4">
                <form action="/demo/tripform/increase" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="increase" >新增</button>
                </form>
            </div>
            <div class="col-sm-4">
                <form action="/demo/tripform/check" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="search">查看</button>
                </form>
            </div>
        </div>

    </div>

    <c:if test="${not empty tfs}">

        <table class="table table-bordered">
            <tr>
                <td>编号</td>
                <td>经费项目代码</td>
                <td>核准报销金额</td>
                <td>审核状态</td>
                <td colspan="2">操作</td>
            </tr>
            <c:forEach items="${tfs}" var="tripform">
                <tr>
                    <td>${tripform.trid}</td>
                    <td>${tripform.code}</td>
                    <td>${tripform.amount}</td>
                    <td>${tripform.state}</td>
                    <td>
                    <td>
                        <a href="/demo/tripform/edit/${tripform.trid}">修改</a>
                    </td>
                    <td><a href="/demo/tripform/delete/${tripform.trid}">删除</a></td>
                </tr>
            </c:forEach>
        </table>

    </c:if>
</div>
<div id="footer" class="text-center">
    JSP真难<br>联系方式：勇士是冠军
</div>
<script src="/demo/js/jquery-1.11.3.js"></script>
<script src="/demo/js/bootstrap.js"></script>
</body>
</html>
